﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" Inherits="Tim_kiem" Codebehind="Tim-kiem.aspx.cs" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajax" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style>
        .button {
            background:none;
	        font:inherit;
	        color:inherit;
	        cursor:pointer;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <section id="content" class="clearfix">
        <section id="page">
            <div id="pg-content2" class="clearfix">
                <div id="content-title">
                    <font size="15px">
                        Thông tin tìm kiếm
                    </font>
                </div>
                <table style="margin-left:10px;margin-bottom:10px;">
                    <tr>
                        
                        <td>
                            <p class="contact-form-sender">
                                <asp:TextBox ID="txtProductName" runat="server" placeholder="Tìm theo tên sản phẩm" />
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="button-met dark">
                                <asp:Button ID="btntim" runat="server" BorderWidth="0px" CssClass="button" Text="Tìm kiếm"  OnClick="btntim_Click"/>
                            </span>
                        </td>
                    </tr>
                </table>
             </div>
        </section>
    <section id="portfoliotile-left">
        <asp:DataList ID="dl_Information" runat="server" 
        onitemcreated="dl_Information_ItemCreated" RepeatColumns="2" RepeatDirection="Horizontal">
      <HeaderTemplate>
        <div id="portfolio" class="clearfix centered">
      </HeaderTemplate>
      <ItemTemplate>
          <div style="height:30px">
            <asp:Label ID="Label1" runat="server" Text='<%# Eval("productname") %>' 
                Font-Bold="True" Font-Size="15px" ForeColor="#FFFFCC"></asp:Label>
            </div>
          <br /><br />
            <div class="tile large illustration">
            <asp:HyperLink ID="Hyperlink1" runat="server" NavigateUrl='<%# Eval("productid","Chi-Tiet-San-Pham.aspx?ProID={0}") %>'>
            <asp:Image ID="Image1" runat="server"  CssClass="tile-pre-img" Width="100%" Height="100%" ImageUrl='<%# Eval("photopath","Image/Products/{0}") %>' alt='<%# Eval("productname") %>' />
            </asp:HyperLink>
            </div>                          
            <ajax:PopupControlExtender ID="PopupControlExtender1" runat="server" 
               PopupControlID="Panel1" 
               TargetControlID="Image1" 
               DynamicContextKey='<%# Eval("productid") %>' 
               DynamicControlID="Panel1" 
               DynamicServiceMethod="GetDynamicContent" Position="Right"> 
            </ajax:PopupControlExtender> 
        </ItemTemplate>
        <FooterTemplate>
            </div>
        </FooterTemplate>
    </asp:DataList>
    <cc1:CollectionPager ID="CollectionPager1" runat="server" ControlCssClass="pagination clearfix" QueryStringKey="Page" 
    LabelText="Trang:" BackText="« Trở về" FirstText="Đầu tiên" NextText="Tiếp theo »" ResultsFormat="Kết quả hiển thị từ {0}-{1} (of {2})">
   
    </cc1:CollectionPager>
    <asp:Panel ID="Panel1" runat="server">
    </asp:Panel>
    </section>
    <!-- BEGIN SIDEBAR -->
<section id="sidebar"  class="clearfix">

<%--<div id="search" class="widget">

<asp:TextBox ID="txtsearch" CssClass="search-field placeholder" name="sitesearch" placeholder="Tìm kiếm" runat="server" />
<asp:Button ID="btnSearch" runat="server" BorderWidth="0px" type="submit" CssClass="search-submit" value=" " OnClick="btnSearch_Click" />

</div><!-- end #search -->--%>

<div id="twitter" class="widget">
<h5>Giỏ Hàng</h5>
    <table id="tweeter">
        <tr>
            <td align="left">
                <img  src="Image/Giohang.gif"  /></td>
            <td align="left">
                &nbsp;<asp:HyperLink ID="HyperLink1" runat="server" ForeColor="Red" NavigateUrl="~/Gio-Hang.aspx" Text="Giỏ hàng của bạn"/>
            </td>
        </tr>
        <tr>
            <td align="left">
                <img src="Image/Sotien.gif"  /></td>
            <td align="left">
                &nbsp;<asp:Label ID="lbSelected" runat="server" ForeColor="Red"></asp:Label></td>
        </tr>
    </table>

</div><!-- end #twitter -->
<div id="recent-box" class="widget">
<h5>Quảng Cáo</h5>
<ul class="articles-widget">
<li>
	<a href="http://error404.000webhost.com/?">
	<img src="../Image/images/articles/article1_med.jpg" alt="Article 1" />
    <div class="title">Giảm giá cực sốc <br><span class="redtxt">Laptop chỉ có 5 triệu</span></div>
    <div class="more"></div>
    </a>
</li>
<li>
	<a href="http://error404.000webhost.com/?">
	<img src="../Image/images/articles/article2_med.jpg" alt="Article 2" />
    <div class="title">Tặng phẩm sốc<br><span class="limetxt">USB 8GB Ram 2GB</span></div>
    <div class="more"></div>
    </a>
</li>
<li>
	<a href="http://error404.000webhost.com/?">
	<img src="../Image/images/articles/article3_med.jpg" alt="Article 3" />
    <div class="title">Phiếu quà tặng<br><span class="tealtxt">Tiết kiệm hơn 15 triệu</span></div>
    <div class="more"></div>
    </a>
</li>
</ul>
</div><!-- end #recent-box -->




    </section>
<!-- END SIDEBAR -->
    </section>
    
</asp:Content>

